const getCurrentAllMonth = () => {
    const dataArr = [];
    const date = new Date();
    const year = date.getFullYear();
    for (let i = 1; i <= 12; i++) {
        let m = i < 10 ? "0" + i : i;
        dataArr.push({
            label: year + "年" + m + '月',
            value: year + "-" + m
        });
    }
    return dataArr;
}
const getCurrentMonth = () => {
    const date = new Date();
      const year = date.getFullYear();
      let month = date.getMonth() + 1
      if (month < 10) month = `0${month}`
      console.log(year + '-' + month)
      return year + '-' + month
}
export {
    getCurrentAllMonth,
    getCurrentMonth
}
